/*******************************************************************************
*  Project      : Minigate Golfin                                 
*  Program ID   : pop_check.js
*  Description  : 실명인증
*
********************************************************************************
*  Program History                                                            
*  Date        Author    Description                                          
*  ----------  --------  -------------------------------------------------------- 
*  2012-08-17  김효순    Created.  
*******************************************************************************/

jQuery(function($){
	$("body").hide();
	
	
	function clsComm()
	{
		
		this._init();
	}
	
	clsComm.prototype = {
		_init: function(){

		}
		
	}
	
	
	// 컨트롤
	function clsControl()
	{
		this.objComm = null;
		
		this._permitStart = null;
		this.openerControl = null;
	}
	
	clsControl.prototype = {
		_init: function(){
			this._preload();
			
			this.objComm = new clsComm();
			
			this._bind();
			this._beforeStart();
		}
		, _preload: function(){
			_gf.spinStart();
			
			if(opener && opener.document && opener.document.objControl) this.openerControl = opener.document.objControl;
			
			if(!this.q_tele || !this.q_hp || !this.openerControl) self.close();
		}
		, _bind: function(){
			var thisClass = this;
		}
		, _beforeStart: function(){
			var thisClass = this;
			this._permitStart = {
				
			}
			
			_util.executeThread(function(){
				for(var k in thisClass._permitStart){
					if(!thisClass._permitStart[k]) return false;
				}
				
				return true;
			}, function(){
				_gf.spinEnd();
				thisClass._start();
			});
		}
		, _start: function(){
			var thisClass = this;
			
		}

	}
	
	document.objControl = new clsControl();
	document.objControl._init();
});